﻿@model Mrt.BoardGameUp.Model.BoardGame

@{
	ViewBag.Title = "Create board game";
}
<h1>@ViewBag.Title</h1>


@using (Html.BeginForm("Create", "BoardGames", FormMethod.Post, new { id = "bguForm" })) {
	@Html.AntiForgeryToken()
	@Html.ValidationSummary(true)

	<div class="form-group">
		@Html.Label("UserId", "User")
		<div class="row">
			<div class="col-md-6">
				@Html.DropDownList("UserId", ViewBag.UserId as SelectList, string.Empty, new { @class = "form-control input-sm" })
			</div>
			<div class="col-md-6">
				@Html.ValidationMessageFor(model => model.UserId)
			</div>
		</div>
	</div>

	<div class="form-group">
		@Html.LabelFor(model => model.Name)
		<div class="row">
			<div class="col-md-6">
				@Html.TextBox("Name", null, new { @class = "form-control input-sm" })
			</div>
			<div class="col-md-6">
				@Html.ValidationMessageFor(model => model.Name)
			</div>
		</div>
	</div>

	<div class="form-group">
		@Html.Label("GroupWinsCollectively", "Co-op")
		<div class="checkbox">
			<div class="row">
				<div class="col-md-6">
				<label>
					@Html.EditorFor(model => model.GroupWinsCollectively)
					Yes
				</label>
				</div>
				<div class="col-md-6">
					@Html.ValidationMessageFor(model => model.GroupWinsCollectively)
				</div>
			</div>
		</div>
	</div>
	<hr />
	<p>
		<input type="submit" class="btn btn-primary" value="Save" />
		@Html.ActionLink("Cancel", "Index", null, new { @class = "btn btn-default" })
	</p>
}
<script type="text/javascript">
	$(function () {

	});
</script>
